package main

func MapTest() {
	m1 := map[int]string{1: "a", 2: "b", 3: "c"}
	m2 := make(map[string]string, 4)
	m2["a"] = "b"
	val, ok := m1[1]
	if ok {
		println("第一步：", val)
	}
	val = m1[2]
	println("第二步：", val)

	println(len(m2))
	for k, v := range m1 {
		println(k, v)
	}
	for k := range m1 {
		println(k)
	}
	delete(m1, 1)
}
func main() {
	MapTest()
}
